﻿package com.toncen.samepms.basic.dao;

import com.toncen.samepms.basic.domain.UserRole;
import com.toncen.samepms.common.AbstractDao;

/**
 * 描述：用户角色表BASIC_USER_ROLE的dao文件
 * 
 * @author tch 
 */
public class UserRoleDao  extends AbstractDao<UserRole> {

	public UserRoleDao() {
	}

	/**
	 * @param state
	 * @return
	 * @throws Exception
	 */
	public void deleteByUserId(long userId) throws Exception{
		getSqlMap().delete("UserRole.delByUserId", userId);
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.comit.common.db.BaseDao#initialize()
	 */
	@Override
	protected void initialize() {
		setStatementPrefix("UserRole");
		setStatementDivision(".");
	}
}
